/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

Video = function(){
    
}

Video.getLoad = function(url, id, h) {
    $("#" + id).empty();
    console.log("url : " + url);
    jwplayer('player').setup({
        file: url,
        width: "100%",
        height: String(h),
        autostart : "true",
        autoplay : "true",
        image: "images/jw-player/lWMJeVvV-876.jpg",
        logo: {
            file: "http://p.jwpcdn.com/6/0/logo.png",
            link: "http://www.longtailvideo.com/jwpabout/?a=l&amp;v=" + jwplayer.version + "&amp;m=f&amp;e=a"
        },
        abouttext: "JW Player " + jwplayer.version,
        aboutlink: "http://www.longtailvideo.com/jwpabout/?a=r&amp;v=" + jwplayer.version + "&amp;m=f&amp;e=a",
        sharing: {
            code: encodeURI("&lt;iframe src='http://content.bitsontherun.com/videos/lWMJeVvV-364767.mp4' /&gt;"),
            link: "http://www.longtailvideo.com/jw-player/"
        }
    });
}

